package io.hilo.example.account.dto.user;

import java.io.Serializable;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * <p>
 * 修改用户密码 请求类
 * </p>
 *
 * @author zollty
 * @since 2018-6-25
 */
public class ChangePasswordReq implements Serializable {
    private static final long serialVersionUID = 975446781160898L;

    /**
     * 用户ID
     */
    @NotNull
    private Long userId;

    /**
     * 旧密码
     */
    @NotEmpty
    private String oldPassword;

    /**
     * 新密码
     */
    @NotEmpty
    private String newPassword;

    public ChangePasswordReq() {
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getOldPassword() {
        return oldPassword;
    }

    public void setOldPassword(String oldPassword) {
        this.oldPassword = oldPassword;
    }

    public String getNewPassword() {
        return newPassword;
    }

    public void setNewPassword(String newPassword) {
        this.newPassword = newPassword;
    }

    @Override
    public String toString() {
        StringBuilder builder = new StringBuilder();
        builder.append("ChangePasswordReq [");
        builder.append("userId=").append(userId);
        builder.append(", oldPassword=").append(oldPassword);
        builder.append(", newPassword=").append(newPassword);
        builder.append("]");
        return builder.toString();
    }

}
